{% extends "home.html" %}

{% block app %}PSES Calculations: PBCreator{% endblock %}

{% block content %}
<form id="myform" action="{% url "eve_scm.views.BPCreator" %}" method="post">
{% csrf_token %}


Search : <input type="text" oninput="reduce_choices(this.value, 'id_typeid', 'excluded')">
{{ form.as_p }}
<input type="submit" value="submit">
<select id="excluded" style="visibility:hidden;"></select>

<div>
<table class="bp_table">
<tr>
<th>Name</th>
<th>Item</th>
<th>ML</th>
<th>PL</th>
<th>runs</th>
<th>DEL</th>
</tr>
{% for bp in list_blueprint %}
<tr>
<td>{{ bp.bpname }}</td>
<td>{{ bp.typename }}</td>
<td>{{ bp.ml }}</td>
<td>{{ bp.pl }}</td>
<td>{{ bp.runs }}</td>
<td><button id='{{ bp.bpname }}' onclick=''>Delete</button></td>
</tr>
{% empty %}
<tr>Empty...</tr>
{% endfor %}
</table>
</div>

{% endblock %}